package com.youfan.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("product")
public class YoufanProduct {
      private Long id;
      private Long brandid;
      private Long productTypeid;
      private String productAttributeValueId;//逗号分割
      private String name;
      private String title;
      private String pic;
      private Integer deleteStatus;//0 未删除，1 已删除',
      private Integer publishStatus;//0 下架；1 上架',
      private Integer newStatus;//0 不是新品；1 新品
      private Integer recommandStatus;//0  不推荐；1 推荐',
      private Integer approveStatus;//0、未审核；1、审核通过；2、退回
      private Long salenums;//
      private Double price;//
      private Double originalPrice;//
      private String subTitle;//
      private String  description;//
      private Long stock;//
      private String serviceIds;//产品服务：1->7天无理由退换货；2->快速退款；3->免费包邮
      private String albumPics;//画册图片，连产品图片限制为5张，以逗号分割
      private String detailTitle;
      private String detailDesc;
      private String detailHtml;

      @JsonFormat(pattern = "yyyy-MM-dd")
      private Date createTime;
      @JsonFormat(pattern = "yyyy-MM-dd")
      private Date updateTime;

      @TableField(exist = false)
      private Integer pageNum;
      @TableField(exist = false)
      private Integer pageSize;
}
